package com.cn.xiaonuo.tcrfinance.hreports.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.common.utils.ApiJsonModel;
import com.cn.xiaonuo.tcrfinance.hreports.service.IGenStaService;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 报表管理
 *
 * @author Mark sunlightcs@gmail.com
 */
@RestController
public class AppGenStaController {


    @Autowired
    private IGenStaService iGenStaService;

    @ApiOperation(value = "统计报表-统计报表模糊分页查询", notes = "非工作时间列表-列表页面")
    @ApiJsonModel({
            @ApiModelProperty(name = "pageSize", value = "页码", example = "页码"),
            @ApiModelProperty(name = "pageNo", value = "每页多少数量", example = "每页多少数量"),
            @ApiModelProperty(name = "beginTime", value = "开始时间（long）", example = "开始时间（long）"),
            @ApiModelProperty(name = "endTime", value = "结束时间（long）", example = "结束时间（long）")
           })
    @PostMapping("/api/genSta/selectGenStaList")
    public BusinessMessage selectGenStaList(@RequestBody Map<String, Object> params) {
        BusinessMessage message = iGenStaService.selectGenStaLists(params);
        return message;
    }
}
